
<%@page import="com.qf.fanwang.pojo.Goods"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="static/css/show.css" />
</head>
<body>
	<script type="text/javascript" src="static/js/show.js"></script>
	<div id="mc" onmouseover="clearInterval(A)"
		onmouseout="A=setInterval('ff()',500);">
		<div class="circle" onmouseover="showImg(1)">1</div>
		<div class="circle" onmouseover="showImg(2)">2</div>
		<div class="circle" onmouseover="showImg(3)">3</div>
	</div>
	<div id="menu">
		<c:forEach items="${clist}" var="good">
			<div class="items" onmouseover="showItems(1,${good.gid})" onmouseout="showItems(2)">${good.gname}</div>
		</c:forEach>
	</div>
	<div id="showItem">
	<!-- <div class="show_item">
		<div class="item_pic"><img src="img/xm10pro1.jpg"></div>
		<div class="item_name">图片的名称1</div>
	</div>  -->
	</div>
	<c:if test="${empty(sessionScope.user)}"><a href="login.jsp">登录</a></c:if><!-- 如果为用户为空显示登录 -->
	<c:if test="${!empty(sessionScope.user) }">${user.uname}</c:if><!-- 不为空显示用户名 -->
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="user?action=logout">注销</a>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="cart">查看</a>
	<div id="show_out">
		<!--第一层-->
		<div id="lay1">
			<div class="a">
				<img src="img/logo_foot.png" />
			</div>
			<div class="a">
				<img src="img/peijian3.jpg" />
			</div>
			<div class="c">
				<img src="img/search.png" />
			</div>
			<div class="b">
				<input type="text" name="search" placeholder="搜索内容" />
			</div>
		</div>
		<!--第二层-->
		<div id="lay2">
			<!-- <img src="img/banner2.jpg" /> -->
			<div id="lay2_inner">
				<div class="pic">
					<img src="img/banner2.jpg" />
				</div>
				<div class="pic">
					<img src="img/xaiomi.jpg" />
				</div>
				<div class="pic">
					<img src="img/xiaomik30.jpg" />
				</div>
			</div>
		</div>
		<!--第三层-->
		<div id="lay3">
			<div class="a">
				<img src="img/banner2.jpg" />
			</div>
			<div class="a">
				<img src="img/hongmi4x.png" />
			</div>
			<div class="a">
				<img src="img/xiaomi5.jpg" />
			</div>
			<div class="a">
				<img src="img/pinghengche.jpg" />
			</div>
		</div>
		<!--第四层-->
		<div id="lay4">
			小米明星单品&nbsp;&nbsp;|&nbsp;&nbsp;<a href="goods?action=selectAll">更多&gt;&gt;</a>
		</div>
		<!--第五层-->
		<div id="lay5">
			<c:forEach items="${requestScope.glist }" var="goods">
				<div class="a a1">
					<div class="pic">
						<%--<a href="goods?action=selectOne&id=${goods.gid }"><img
							src="${goods.getPic()}"></a>--%>
						 <img src="${goods.pic}">
					</div>
					<div class="brand">${goods.gname}<%-- |<a
							href="goods?action=delete&id=${goods.gid }">删除</a> --%>
					</div>
					<div class="info">${goods.info}</div>
					<div class="price">${goods.price}</div>
				</div>
			</c:forEach>
			<%-- <%
			List<Goods> glist=(List<Goods>)request.getAttribute("glist");//从请求域中取数据
			for(Goods goods:glist){
			%>
				<div class="a a1">
					<div class="pic">
						<img src="<%=goods.getPic()%>">
					</div>
					<div class="brand"><%=goods.getGname() %></div>
					<div class="info"><%=goods.getInfo() %>
					</div>
					<div class="price"><%=goods.getPrice() %></div>
				</div>
				<%
			}
				%>	 --%>
		</div>
		<!--第六层-->
		<div id="lay6">小米商城|MIUI|米聊|多看书城|小米路由器|视频电话|小米天猫店|小米淘宝直营店|小米网盟|小米移动|隐私政策|SelectReaion</div>
	</div>
</body>
</html>